<?php
$host = "127.0.0.1";
$user = "root";
$pass = "";
$link = mysql_connect($host, $user, $pass);
if (!$link) 
{
    die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully'."\n";

$sql = "use admin_niced";
$start_time = microtime(true);
$result = mysql_query($sql);
$stop_time = microtime(true);
echo "sql execution time is ".($stop_time - $start_time)."\n";

$sql = "select * from user limit 1";
$start_time = microtime(true);
$result = mysql_query($sql);
$stop_time = microtime(true);
echo "sql execution time is ".($stop_time - $start_time)."\n";

mysql_close($link);
